package cn.goods.itcast.controller;

import cn.goods.itcast.domain.User;
import cn.goods.itcast.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;


/**用户模块控制层
 * Created by ChengGM on 2016/12/26.
 */
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("\find.do")
    public User getUser(String name){
        User user = new User();
        user.setLoginname(name);
        return userService.findAllUser(user);
    }


}
